<?
$collection=ORM::factory('collection', $content->var1);
$contarray=$collection->orderby('date','desc')->content->as_array();
if(count($contarray)==0)return;

$model=$contarray[0];

if($this->id2!=''){
	$model=ORM::factory('content', $this->id2);
}else{
	$this->id2=$model->shortname;
}


echo '<div class="work_head">';
$pfeile=new View('contentmodule/pfeile');
$pfeile->contents=$collection->content;
$pfeile->model=$model;
echo $pfeile;
echo '</div>';


if($model->id!=0){
	$subview=new View('contentmodule/worksingle');
	$subview->content=$content;
	echo $subview;
		
}


?>